home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / dev / misc / toolbox.lha / Toolbox / lib / include / DynArray.h next >
Encoding:
C/C++ Source or Header  |  1993-03-11  |  1.3 KB  |  45 lines

  1. # ifndef yyDynArray
  2. # define yyDynArray
  3.  
  4. /* $Id: DynArray.h,v 1.4 1992/08/07 14:36:51 grosch rel $ */
  5.  
  6. /* $Log: DynArray.h,v $
  7.  * Revision 1.4  1992/08/07  14:36:51  grosch
  8.  * added comments
  9.  *
  10.  * Revision 1.3  1991/11/21  14:28:16  grosch
  11.  * new version of RCS on SPARC
  12.  *
  13.  * Revision 1.2  91/07/17  17:23:02  grosch
  14.  * introduced ARGS trick for ANSI compatibility
  15.  * 
  16.  * Revision 1.1  90/07/04  14:33:52  grosch
  17.  * introduced conditional include
  18.  * 
  19.  * Revision 1.0  88/10/04  11:44:36  grosch
  20.  * Initial revision
  21.  * 
  22.  */
  23.  
  24. /* Ich, Doktor Josef Grosch, Informatiker, Sept. 1987 */
  25.  
  26. # ifdef __STDC__
  27. # define ARGS(parameters)    parameters
  28. # else
  29. # define ARGS(parameters)    ()
  30. # endif
  31.  
  32. extern void MakeArray    ARGS((char * * ArrayPtr, unsigned long * ElmtCount, unsigned long ElmtSize));
  33.             /* 'ArrayPtr' is set to the start address of a    */
  34.             /* memory space to hold an array of 'ElmtCount' */
  35.             /* elements each of size 'ElmtSize' bytes.    */
  36.  
  37. extern void ExtendArray  ARGS((char * * ArrayPtr, unsigned long * ElmtCount, unsigned long ElmtSize));
  38.             /* The memory space for the array is increased    */
  39.             /* by doubling the number of elements.        */
  40.  
  41. extern void ReleaseArray ARGS((char * * ArrayPtr, unsigned long * ElmtCount, unsigned long ElmtSize));
  42.             /* The memory space for the array is released.    */
  43.  
  44. # endif
  45.